<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

<%@page import="docmanager.engine.DMController"%>
<%@page import="docmanager.business.objects.*"%>
<%@page import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Secciones</title>
</head>
<body>


<% 

String nextOp = "PENDIENTE";
if ("consulta".equals(request.getAttribute("accion")))
	nextOp = "ConsultarDocumento2";

List<Sector> sectores = (List<Sector>) request.getAttribute("sectores");

%>


<table border=3>
<tr bgcolor="#A0D0A0"> <td> Sector </td>

<%
Iterator<Sector> it = sectores.iterator();
while (it.hasNext())
{
	Sector sector =  it.next();
	%>

	<tr>
	  <td><a href="DMController?op=<%=nextOp%>&id_sector=<%=sector.getId()%>" >  <%=sector.getDescripcion() %> </a> </td>
	</tr>
	
	<%
	
}

%>

</table>

<%
	String serverPath = DMController.getServerPath(request);
%>
<script type="text/javascript">			

function execMenuPrincipal()
{
    document.location.href = "<%=serverPath%>/DMController?op=MenuPrincipal"
}


</script>
      <input type="button" value="Menu Principal" name="menuPrincipal" onclick="execMenuPrincipal();">


</body>
</html>